require_not_empty
Checks for empty list and throws an exception if empty.
Since
0.9.0
Parameters
value
The list to be checked.
message
The error message to be thrown if the list is empty.
Checks for empty set and throws an exception if empty.
Since
0.9.0
Parameters
value
The set to be checked.
message
The error message to be thrown if the set is empty.
Checks for empty map and throws an exception if empty.
Since
0.9.0
Parameters
value
The map to be checked.
message
The error message to be thrown if the map is empty.
Checks for precence of a value and throws an exception if null.
Since
0.9.0
Parameters
value
The nullable or empty value to be checked.
message
The error message to be thrown if the value is null or empty.